<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"></meta>
    <title>品牌统计日报表</title>
	<style>
		table{
			text-align: center;
			border-collapse: collapse;
			border-color: #80807E;
		}
		.r_header{
			background-color: #305496;
			color: white;
			font-weight: bolder;
			font-size: 14px;
			font-family: 楷体;
		}
		.r_data{
			background-color: #D9E1F2;
		}
		.r_title{
			color: white;
			background-color: green;
			font-weight: bolder;
		}
	</style>
</head>
<body>
     <table border="1" cellpadding="1" cellspacing="0">
     	<thead>
			<tr>
				<th class="r_title" colspan="10" th:text="${report.date+report.type.title}"/>
			</tr>
     		<tr class="r_header">
     			<th>品牌统计分析</th>
     			<th>查询总量</th>
     			<th>品牌查询占比</th>
     			<th>查询成功</th>
     			<th>查询成功率</th>
     			<th>查无记录</th>
     			<th>查询超时</th>
     			<th>查询中</th>
     			<th>查询失败</th>
     			<th>平均查询时长</th>
     		</tr>
     	</thead>
     	<tbody class="r_data">
     		<tr th:each="detail : ${report.details}"><!-- 其中m是个临时变量，像for(User u : userList)那样中的u-->
				<td th:text="${detail.brandName}"/>
				<td th:text="${detail.orderNum}"/>
				<td th:text="${#numbers.formatDecimal(detail.orderNum*100.0/report.total.orderNum,1,2)}+'%'"/>
				<td th:text="${detail.successNum}"/>
				<td th:text="${#numbers.formatDecimal(detail.successNum*100.0/detail.orderNum,1,2)}+'%'"/>
				<td th:text="${detail.noRecordNum}"/>
				<td th:text="${detail.overTimeNum}"/>
				<td th:text="${detail.inquiryNum}"/>
				<td th:text="${detail.failedNum}"/>
				<td th:text="${#numbers.formatDecimal(detail.avgQueryTime,1,2)}"/>
			</tr>
     		<tr >
				<td>合计</td>
				<td th:text="${report.total.orderNum}"/>
				<td>-</td>
				<td th:text="${report.total.successNum}"/>
				<td th:text="${#numbers.formatDecimal(report.total.successNum*100.0/report.total.orderNum,1,2)}+'%'"/>
				<td th:text="${report.total.noRecordNum}"/>
				<td th:text="${report.total.overTimeNum}"/>
				<td th:text="${report.total.inquiryNum}"/>
				<td th:text="${report.total.failedNum}"/>
				<td th:text="${#numbers.formatDecimal(report.total.avgQueryTime,1,2)}"/>
			</tr>
     	</tbody>
     </table>
</body>
</html>